package com.neighbor.neighborhooduser.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import java.util.List;

import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 系统通知表
 * </p>
 *
 * @author song
 * @since 2025-09-22 09:13:04
 */
@Getter
@Setter
@TableName("notifications")
public class Notifications {

    /**
     * 通知唯一ID
     */
    @TableId(value = "notification_id", type = IdType.AUTO)
    private Integer notificationId;

    /**
     * 用户ID(为空表示全体通知)
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 通知标题
     */
    @TableField("title")
    private String title;

    /**
     * 通知内容
     */
    @TableField("content")
    private String content;

    /**
     * 类型(1:系统通知,2:交易通知,3:互动通知)
     */
    @TableField("type")
    private Byte type;

    /**
     * 相关ID(帖子ID/订单ID等)
     */
    @TableField("related_id")
    private Integer relatedId;

    /**
     * 是否已读(0:未读,1:已读)
     */
    @TableField("is_read")
    private Byte isRead;

    /**
     * 创建时间
     */
    @TableField("created_at")
    private Date createdAt;

    @TableField("images")
    private String images;

    @TableField(exist = false)
    private List<Notifications> notificationsList;
}
